package leading;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;

public class PrintWriterTest {
	public static void main(String[] args) {
		try {
			PrintWriter pw = new PrintWriter(new File("ok.txt"));
			FileReader reader = new FileReader(new File("ok.txt"));
			BufferedReader bufferRead = new BufferedReader(new FileReader(new File("ok.txt")));
			bufferRead.readLine();
			pw.write("123");
			pw.println("asdasdasdads");
			pw.println("asdasdasdads");
			pw.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
